package com.demo.crud;

import com.demo.crud.component.MyLocalResolver;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ImportResource;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import org.springframework.web.servlet.LocaleResolver;

/**
 * Created with IntelliJ IDEA.
 *
 * @author: keen
 * Date: 2019-05-18
 * Time: 17:11
 */
@MapperScan("com.demo.crud.dao")
@SpringBootApplication
@ImportResource(locations = {"classpath:applicationContext.xml"})
// 开启注解事务的注解，相当于配置文件的<tx:annotation-driven transaction-manager="transactionManager" />
//@EnableTransactionManagement
public class CrudApplication {
    public static void main(String[] args) {
        SpringApplication.run(CrudApplication.class, args);
    }
}
